home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsISOAPServiceRegistry.idl < prev    next >
Text File  |  2006-05-08  |  4KB  |  109 lines

  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. #include "nsISupports.idl"
  39.  
  40. interface nsIDOMElement;
  41. interface nsISOAPService;
  42. interface nsISOAPEncodingRegistry;
  43.  
  44. /**
  45.  * This interface represents a registry of SOAP services.
  46.  * This registry recieves transports to listen for messages
  47.  *   and services to hand the messages to.  Service registries
  48.  *   may be created as required.  Destroying a service registry
  49.  *   stops the registry's action.  To temporarily register
  50.  *   services, create a new registry.  For proper order of
  51.  *   listening precedence, registries should be destroyed
  52.  *   in reverse order.  Otherwise, a listening priority
  53.  *   would be required.
  54.  */
  55. [scriptable, uuid(9790d6bc-1dd1-11b2-afe0-bcb310c078bf)]
  56. interface nsISOAPServiceRegistry {
  57.   /**
  58.    * Process a configuration and add the resulting sources
  59.    *   and services.  This will fail if errors occur during
  60.    *   processing of the configuration.
  61.    *
  62.    * @param aConfiguration Root element of configuration XML.
  63.    */
  64.   boolean addConfiguration(in nsIDOMElement aConfiguration);
  65.  
  66.   /**
  67.    * Add a transport to be serviced by the registered services.
  68.    *   This will fail if the specified source was already added
  69.    *   with the same setting of the capture flag.
  70.    *
  71.    * @param aTransport string specifying the transport to supply
  72.    *   messages for the service.
  73.    *
  74.    * @param aCapture True if capturing before later declarations
  75.    */
  76.   void addSource(in AString aTransport, in boolean aCapture);
  77.  
  78.   /**
  79.    * Add a service to service the registered transports.  This
  80.    *   will fail if the specified service was already added.
  81.    *
  82.    * @param aService Service to be serviced.
  83.    */
  84.   void addService(in nsISOAPService aService);
  85.  
  86.   /**
  87.    * Registry identifying how to encode and decode
  88.    *   messages containing specific types, automatically
  89.    *   added to messages sent to services in this
  90.    *   registry.
  91.    */
  92.   attribute nsISOAPEncodingRegistry encodings;
  93. };
  94.  
  95. %{C++
  96. #define NS_SOAPSERVICEREGISTRY_CID                            \
  97. { /* 3869184e-1dd2-11b2-aa36-d8333498043a */        \
  98.   0x3869184e, 0x1dd2, 0x11b2,                       \
  99.  {0xaa, 0x36, 0xd8, 0x33, 0x34, 0x98, 0x04, 0x3a} }
  100. #define NS_SOAPSERVICEREGISTRY_CONTRACTID \
  101. "@mozilla.org/xmlextras/soap/serviceregistry;1"
  102. #define NS_SOAPDEFAULTSERVICEREGISTRY_CID                            \
  103. { /* 9120a01e-1dd2-11b2-a61f-906766927a4f */        \
  104.   0x9120a01e, 0x1dd2, 0x11b2,                       \
  105.  {0xa6, 0x1f, 0x90, 0x67, 0x66, 0x92, 0x7a, 0x4f} }
  106. #define NS_SOAPDEFAULTSERVICEREGISTRY_CONTRACTID \
  107. "@mozilla.org/xmlextras/soap/defaultserviceregistry;1"
  108. %}
  109.